package com.love.marriage.publicInfoConfig.mapper;

import com.love.marriage.publicInfoConfig.entity.PublicInfoConfig;
import com.love.marriage.publicInfoConfig.vo.PublicInfoConfigVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  公共信息配置表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-27 10:33:49
 * version:      1.0.0
 */
@Mapper
public interface PublicInfoConfigMapper extends BaseMapper<PublicInfoConfig> {

    @DataPermission(table = "public_info_config_t")
    Page<PublicInfoConfigVo> getPage(Page<PublicInfoConfigVo> page, @Param("publicInfoConfigVo") PublicInfoConfigVo publicInfoConfigVo);

    PublicInfoConfigVo getPublicInfo(@Param("code") String code);

    PublicInfoConfigVo queryPublicInfoConfig(@Param("id") Long id);
}
